package com.ruoyi.tj.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.tj.entity.BaseEntity;
import com.ruoyi.tj.vo.BizQueryParam;

import java.util.Collection;

public interface BaseBizService<T extends BaseEntity> extends IService<T> {

    T saveRecord(T record) throws Throwable;

    Collection<T> saveRecordBath(Collection<T> record) throws Throwable;

    T getRecord(T record, BizQueryParam params);

    T getRecordById(String id);

    IPage<T> listPage(T record, BizQueryParam params);

    void deleteRecordByIds(Collection<String> ids);

    void deleteRecordById(String id);
}
